<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>我的评价</title>
    <script type="text/javascript" src="/SVN/DR/Public/Js/home/jquery-1.11.3.js"></script>
    <script type="text/javascript" src="/SVN/DR/Public/Js/layer/layer.js"></script>
    <link rel="stylesheet" type="text/css" href="/SVN/DR/Public/Css/home/user_common.css">
    <link rel="stylesheet" type="text/css" href="/SVN/DR/Public/Css/home/user_main_left.css">
    <link rel="stylesheet" type="text/css" href="/SVN/DR/Public/Css/home/evaluate.css">
    <script>
        $(function () {
            //订单按钮 添加事件
            $('.member_all-nav-ul li').each(function (index) {
                $(this).click(function () {
                    $('.member_all-nav-ul li').removeClass();
                    $(this).addClass('member_all-nav-click');
                    if (index == 0) {
                        $('.wait_evaluate').removeAttr('style');
                        $('.done_evaluate').attr('style', 'display:none');
                    } else {
                        layer.load(1);
                        $('.done_evaluate .member_ask-table tr:gt(0)').remove();
                        $.post(
                                '/SVN/DR/index.php/Home/User/doneEvaluate',
                                function(data){
                                    layer.closeAll('loading');
                                    $('.done_evaluate .member_ask-table').append(data['content']);
                                },
                                'json'
                        );
                        $('.done_evaluate').removeAttr('style');
                        $('.wait_evaluate').attr('style', 'display:none');
                    }
                });
            });
        });
        //调出评价窗口
        function evaluate(order_detail_id,goods_id,status){
            //iframe层-父子操作
            layer.open({
                type: 2,
                area: ['350px', '320px'],
                title: '商品评价',
                fix: false, //不固定
                maxmin: true,
                content: '/SVN/DR/index.php/Home/User/evaluate_edit/order_detail_id/'+order_detail_id+'/goods_id/'+goods_id+'/status/'+status
            });
        }
        //追加评论
        function addEvaluate(order_detail_id,goods_id,status){
            //iframe层-父子操作
            layer.open({
                type: 2,
                area: ['350px', '320px'],
                title: '追加评价',
                fix: false, //不固定
                maxmin: true,
                content: '/SVN/DR/index.php/Home/User/evaluate_edit/order_detail_id/'+order_detail_id+'/goods_id/'+goods_id+'/status/'+status
            });
        }
        //平轮成功后对未评论的商品数量做修改     在iframe中调用
        function change_num(){
            var show=$('.wait_evaluate_num');
            //获取原有的未评论的商品的数量
            var old_num=show.text();
            var num=parseInt(old_num)-1;
            show.html(num);
            $('.member_all-nav-right em').html(num+'件');
        }
    </script>
</head>
<body>
<!--引入页面头部-->
<style>
    .dr_nav li {
        margin-left: 30px;
        float: left;
        text-align: center;
        width: 160px;
    }
</style>
<div>
    <!--头部-->
    <!--头部-->
    <div class="dr_header">
        <div class="w1000 fix">
            <div class="dr_logo fl">
                <a href="/SVN/DR/index.php/Home/Index/index">
                    <img src="/SVN/DR/Public/Images/home/drlogo.png" alt="Darry Ring官网">
                </a>
            </div>

            <div class="dr_member fr">
                <div class="drmember_sec">
                    <div class="dr_member-left fl" id="div_islog">
                        <?php if($_SESSION['user_id']> 0): ?><a href="/SVN/DR/index.php/Home/User/index" rel="nofollow" style="color:#C67C59"><?php echo (session('user_tel')); ?> 欢迎您！</a>
                            <a href="/SVN/DR/index.php/Home/index/logout" rel="nofollow">退出</a>
                            <?php else: ?>
                            <a href="/SVN/DR/index.php/Home/index/login" rel="nofollow">登录</a>
                            <a href="/SVN/DR/index.php/Home/index/register" rel="nofollow" class="drtojoin">注册</a><?php endif; ?>
                    </div>


                    <div class="dr_member-left fl">
                        <i>
                            <img src="/SVN/DR/Public/Images/home/telleft.png">
                            400 00 00000
                        </i>
                    </div>

                    <div class="drmember_yz">
                        <!--提示-->
                        <div class="drmember_yz-word index_yz-word" id="dr_sfwrong">
                            <p>Darry Ring严格规定男士凭身份证一生仅能定制一枚，象征男人一生真爱的最高承诺。输入身份证号码即可查询购买记录。</p>
                        </div>
                        <!--提示end-->
                        <!--报错(把drmember_yz-wrong的样式加到上面的提示就是报错了)-->
                        <div class="drmember_yz-wrong">
                            <p>身份证有误，请重新输入。</p>
                        </div>
                        <!--报错end-->
                        <img src="/SVN/DR/Public/Images/home/drz.png">
                        <div class="drmember_yzborder">
                            <div class="drmember_yzborderul">
                                <span id="span_currArea">中国大陆</span>
                            </div>

                            <input value="" id="txtIDCardw" placeholder="请输入身份证号验证真爱承诺" type="text" name="number">
                            <i id="btnnSeach">DR真爱查询</i>

                        </div>
                    </div>

                </div>
            </div>


        </div>
        <!--头部end-->
        <script>
            $('.drmember_yzborder').mouseover(function () {
                $('#dr_sfwrong').css('display', 'block');
            })
            $('.drmember_yzborder').mouseout(function () {
                $('#dr_sfwrong').css('display', 'none');
            })
            $('#btnnSeach').click(function () {
                var vals = $("#txtIDCardw").val();

                var regIdCard = /^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/;
                if (!regIdCard.test(vals)) {
                    layer.alert('请核对您的身份证信息');
                } else {
                    $.post("/SVN/DR/index.php/Home/Index/select", {number: vals}, function (data) {
                        if (data == 0) {
                            //layer.alert('111');
                            layer.alert('亲爱的SOKOLOV族，您的SOKOLOV还未赠出');
                        } else {
                            //layer.alert('222');
                             layer.alert('亲爱的SOKOLOV族，您的SOKOLOV已赠出');
                        }
                    })
                }
            })
        </script>

        <!--导航-->
        <div class="dr_navbk fix">
            <ul class="dr_nav w1000">
                <li id="DrNav">
                    <a href="/SVN/DR/index.php/Home/Index/index">首页</a>
                    <!--下拉导航-->
                    <div class="dr_navsuv dr_navsuv-third" id="DRsubNav">
                        <!--导航上部分-->
                        <div class="dr_navsuv-top">
                            <!--中间内容-->
                            <div class="dr_navsuv-cort">
                                <!--品牌文化-->
                                <div class="dr_navsuv-curture">
                                    <div class="dr_navsuv-curturesame fl">
                                        <img src="/SVN/DR/Public/Images/home/drword.png">
                                        <p class="tojoinDR"><a href="/SVN/DR/index.php/Home/index/login">加入DR族</a></p>
                                    </div>
                                    <div class="dr_navsuv-curturesame fl">
                                        <a href="#">
                                            <img src="/SVN/DR/Public/Images/home/drimg.jpg">
                                        </a>
                                        <p><a href="#">搜索DR族</a></p>
                                    </div>
                                </div>
                                <!--品牌文化end-->
                            </div>
                            <!--中间内容end-->
                        </div>
                        <!--导航上部分end-->
                    </div>
                    <!--下拉导航end-->
                    <script>
                        $('#DrNav').mouseover(function () {
                            $('#DRsubNav').css('display', 'block');
                        })
                        $('#DrNav').mouseout(function () {
                            $('#DRsubNav').css('display', 'none');
                        })
                    </script>
                </li>

                <li id="qhzjNav">
                    <a href="/SVN/DR/index.php/Home/Goods/index">求婚钻戒</a>
                    <!--下拉导航-->
                    <div class="dr_navsuv dr_navsuv-first" id="qhzjsubNav">
                        <!--导航上部分-->
                        <div class="dr_navsuv-top">
                            <!--中间内容-->
                            <div class="dr_navsuv-cort dr_navTabs">
                                <!--戒指图片-->
                                <div class="dr_navsuv-ring dr_navsuvleft-ring fl" id="left1">
                                    <?php if(is_array($nav1)): foreach($nav1 as $key=>$vo): if($vo.detail_id): ?><a href="/SVN/DR/index.php/Home/Goods/details/id/<?php echo ($vo["detail_id"]); ?>" style="">
                                                <img src="/SVN/DR/Public/Uploads/Images/<?php echo ($vo["pic1"]); ?>" height="200"
                                                     width="200"></a>
                                            <?php else: ?>
                                            <a href="/SVN/DR/index.php/Home/Goods/index/type_id/<?php echo ($vo["type_id"]); ?>" style="">
                                                <img src="/SVN/DR/Public/Uploads/Images/<?php echo ($vo["pic1"]); ?>" height="200"
                                                     width="200"></a><?php endif; endforeach; endif; ?>

                                </div>
                                <!--戒指end-->
                                <!--相同部分-->
                                <div class="dr_navsuv-same dr_navsuvleft-same fl" id="aL1">
                                    <?php if(is_array($nav1)): foreach($nav1 as $key=>$vo): ?><a class="" href="/SVN/DR/index.php/Home/Goods/index/type_id/<?php echo ($vo["type_id"]); ?>"><?php echo ($vo["type_name"]); ?></a><?php endforeach; endif; ?>

                                </div>
                                <!--相同部分end-->
                                <!--相同部分-->
                                <div class="dr_navsuv-same dr_navsuvright-same fl" id="aR1">
                                    <?php if(is_array($nav2)): foreach($nav2 as $key=>$vo): ?><a class="" href="/SVN/DR/index.php/Home/Goods/index/type_id/<?php echo ($vo["type_id"]); ?>"><?php echo ($vo["type_name"]); ?></a><?php endforeach; endif; ?>
                                    <a href="/SVN/DR/index.php/Home/Goods/index">查看全部商品</a>
                                </div>
                                <!--相同部分end-->
                                <!--戒指-->
                                <div class="dr_navsuv-ring dr_navsuvright-ring fl" id="right1">
                                    <?php if(is_array($nav2)): foreach($nav2 as $key=>$vo): if(!$vo.detail_id): ?><a href="/SVN/DR/index.php/Home/Goods/index/type_id/<?php echo ($vo["type_id"]); ?>" style="">
                                                <img src="/SVN/DR/Public/Uploads/Images/<?php echo ($vo["pic1"]); ?>" height="200"
                                                     width="200"></a>
                                            <?php else: ?>
                                            <a href="/SVN/DR/index.php/Home/Goods/details/id/<?php echo ($vo["detail_id"]); ?>" style="">
                                                <img src="/SVN/DR/Public/Uploads/Images/<?php echo ($vo["pic1"]); ?>" height="200"
                                                     width="200"></a><?php endif; endforeach; endif; ?>

                                </div>
                                <!--戒指end-->
                            </div>
                            <!--中间内容end-->
                        </div>
                        <!--导航上部分end-->
                    </div>
                    <!--下拉导航end-->
                </li>
                <script>
                    $('#qhzjNav').mouseover(function () {
                        $('#qhzjsubNav').css('display', 'block');
                    });
                    $('#qhzjNav').mouseout(function () {
                        $('#qhzjsubNav').css('display', 'none');
                    });
                    $('#aL1 a').mouseover(function () {
                        index = $(this).index();//获取元素位置
                        $('#left1 a').css('display', 'none');
                        $("#left1 a").eq(index).css('display', 'block');
                    });
                    $('#aR1 a').mouseover(function () {
                        index = $(this).index();//获取元素位置
                        $('#right1 a').css('display', 'none');
                        $("#right1 a").eq(index).css('display', 'block');
                    });

                </script>


                <li id="ppwhNav">
                    <a href="/SVN/DR/index.php/Home/Culture/index">品牌文化</a>
                </li>

                <li id="ppwhNav">
                    <a href="/SVN/DR/index.php/Home/Culture/news">真爱见证</a>
                </li>
                
                <li id="ppwhNav">
                    <a href="/SVN/DR/index.php/Home/User/index">会员中心</a>
                </li>

            </ul>
        </div>
        <!--导航end-->
    </div>
    </div>
<div class="cort">
    <div class="tobuy cmain">
        <div class="cmain mb_back">
            <div class="zbk_top spalid">
                <span>您当前的位置：</span>
                <span><a href="/SVN/DR/index.php/Home/Index/index" target="_top">Darry Ring</a></span>
                <span><em>&gt;</em></span>
                <span><a href="/SVN/DR/index.php/Home/User/index" target="_top">我的DR</a></span>
                <span><em>&gt;</em></span>
                <span>我的评价</span>
            </div>
            <div class="member_cort">
                <!--引入左导航栏-->
                <!--用户中心的左导航栏-->
<div class="member_cort-left fl">
    <!--我的DR-->
    <div class="member_cortleft-tittle">
        <i class="mb_home"></i><a href="/SVN/DR/index.php/Home/User/index" rel="nofollow"> 我的 DR</a>
    </div>
    <!--我的DR end-->
    <ul class="member_cort-ul">
        <li>
            <h3>-订单中心-</h3>
            <ul class="member_ul-dr">
                <li id="order"><a href="/SVN/DR/index.php/Home/User/order" rel="nofollow">我的订单</a></li>
                <li id="ask"><a href="/SVN/DR/index.php/Home/User/evaluate" rel="nofollow">我的评价</a></li>
                <li id="cart"><a target="_top" href="/SVN/DR/index.php/Home/User/cart" rel="nofollow">我的购物车</a></li>
                <!--<li id="collect"><a href="/SVN/DR/index.php/Home/User/myFavorites" rel="nofollow">我的收藏</a></li>-->
                <!--<li id="yuyue" class="no_border"><a href="/SVN/DR/index.php/Home/User/appointment" rel="nofollow">我的预约</a></li>-->
            </ul>
        </li>
        <!--<li>
            <h3>-售后服务-</h3>
            <ul class="member_ul-dr">
                <li id="aftersale"><a href="#" rel="nofollow">售后办理</a></li>
            </ul>
        </li>-->
        <li>
            <h3>-帐户管理-</h3>
            <ul class="member_ul-dr">
                <li id="myinfo"><a href="/SVN/DR/index.php/Home/User/personInfo" rel="nofollow">个人信息</a></li>
                <li id="password"><a href="/SVN/DR/index.php/Home/User/mypwd" rel="nofollow">修改密码</a></li>
                <li id="address"><a href="/SVN/DR/index.php/Home/User/myAddress" rel="nofollow">收货地址</a></li>
                <!--<li id="li_jnr"><a href="/SVN/DR/index.php/Home/User/mydr_jnr">纪念日维护</a></li>-->
                <!--<li id="zhuanshu"><a href="#">专属空间</a></li>-->
                <!--<li id="news" class="no_border"><a href="#" rel="nofollow">系统消息</a></li>-->
            </ul>
        </li>
        <li>
            <h3>-真爱见证-</h3>
            <ul class="member_ul-dr">
                <li id=""><a href="/SVN/DR/index.php/Home/Culture/message" rel="nofollow">真爱见证</a></li>
            </ul>
        </li>
    </ul>
</div>
                <!--右边的主要内容-->
                <div class="member_cort-right fr">
                    <!--我的评价-->
                    <div class="member_ask">
                        <!--切换nav-->
                        <div class="member_all-nav">
                            <div class="member_all-nav-top">
                                <ul class="member_all-nav-ul fl">
                                    <li class="member_all-nav-click">待评论商品(<span class="wait_evaluate_num"><?php echo (count($order_goods)); ?></span>)</li>
                                    <li>已发表的评论</li>
                                </ul>
                                <!--右边-->
                                <div class="member_all-nav-right fr">
                                    <i class="member_tz"></i>
                                    <span>您可以对已成功购买的&nbsp;<em><?php echo (count($order_goods)); ?>件</em>&nbsp;商品进行评论,和大家说说您的切身感受吧。</span>
                                </div>
                                <!--右边end-->
                            </div>
                            <!--黄色线-->
                            <div class="member_all-nav-line"></div>
                            <!--黄色线end-->
                        </div>
                        <!--切换nav end-->
                        <!--评论以及已经评论-->
                        <div class="member_ask-all">
                            <!--评论的产品-->
                            <div class="member_news-it wait_evaluate">
                                <table class="member_ask-table" border="0" cellpadding="0" cellspacing="0">
                                    <tr class="ask-table-trfirst">
                                        <td class="ask-table-td0">订单</td>
                                        <td class="ask-table-td0">商品</td>
                                        <td class="ask-table-td0">购买时间</td>
                                        <td class="ask-table-td0">操作</td>
                                    </tr>
                                    <!--遍历未评价的商品-->
                                    <?php if(is_array($order_goods)): foreach($order_goods as $key=>$v): ?><tr id="evaluate<?php echo ($v['id']); ?>">
                                            <td><?php echo ($v['order_id']); ?></td>
                                            <td><a href="/SVN/DR/index.php/Home/Goods/details/id/<?php echo ($v['goods_detail_id']); ?>"><?php echo ($v['goods_style']); echo ($v['goods_name']); ?></a></td>
                                            <td><?php echo ($v['addtime']); ?></td>
                                            <td><a href="JavaScript:evaluate(<?php echo ($v['id']); ?>,<?php echo ($v['goods_id']); ?>,0)">评价</a></td>
                                        </tr><?php endforeach; endif; ?>
                                </table>
                            </div>
                            <!--评论的产品end-->
                            <!--已发表的评论-->
                            <div class="member_news-it done_evaluate" style="display: none;">
                                <table class="member_ask-table" border="0" cellpadding="0" cellspacing="0">
                                    <tr class="ask-table-trfirst">
                                        <!--<td style="width: 10%">订单</td>
                                        <td style="width: 15%">商品</td>
                                        <td style="width: 45%;overflow: hidden;">评论内容</td>
                                        <td style="width: 15%">评论时间</td>
                                        <td style="width: 15%">操作</td>-->
                                        <td style="width: 10%">订单</td>
                                        <td style="width: 15%">商品</td>
                                        <td style="width: 65%">订单时间</td>
                                        <td style="width: 10%">操作</td>
                                    </tr>
                                </table>
                            </div>
                            <!--已发表的评论end-->
                        </div>
                        <!--评论以及已经评论end-->
                    </div>
                    <!--我的评价end-->
                </div>
                <!--右边的主要内容end-->
            </div>
        </div>
    </div>
</div>
<!--引入页面底部-->
        <!--底部-->
        <div class="dr_footer">
            <div class="dr_footer-top"></div>
            <!--底部图标-->
            <ul class="dr_footer-icon w1000">
                <li>
                    <a rel="nofollow" href="javascript:void(0)">
                        <i class="footer-icon1"></i>
                        <span>权威认证</span>
                    </a>
                </li>
                <li>
                    <a rel="nofollow" href="javascript:void(0)">
                        <i class="footer-icon2"></i>
                        <span>一钻双证</span>
                    </a>
                </li>
                <li>
                    <a rel="nofollow" href="javascript:void(0)">
                        <i class="footer-icon3"></i>
                        <span>终生保养</span>
                    </a>
                </li>
                <li>
                    <a rel="nofollow" href="javascript:void(0)">
                        <i class="footer-icon4"></i>
                        <span>以小换大</span>
                    </a>
                </li>
                <li>
                    <a rel="nofollow" href="javascript:void(0)">
                        <i class="footer-icon5"></i>
                        <span>15天退换</span>
                    </a>
                </li>
                <li>
                    <a rel="nofollow" href="javascript:void(0)">
                        <i class="footer-icon6"></i>
                        <span>全国免运费</span>
                    </a>
                </li>
                <li>
                    <a rel="nofollow" href="javascript:void(0)">
                        <i class="footer-icon7"></i>
                        <span>全程保险</span>
                    </a>
                </li>
            </ul>
            <!--底部图标end-->
            <!--灰色区域-->
            <!--<div class="dr_gray">
                &lt;!&ndash;帮助&ndash;&gt;
                <div class="dr_help w1000 fix">
                    <div class="dr_help-all fl">
                        <div class="dr_help-top">
                            <div class="dr_help-left dr_help-gz fl" id="dr_help-gz">
                                关注我们
                                &lt;!&ndash;分享按钮&ndash;&gt;
                                <div class="comShare">
                                    <a rel="nofollow" class="shareWeibo" target="_top"
                                       href="javascript:void(0)"></a>
                                    <a rel="nofollow" class="shareQzone" target="_top"
                                       href="javascript:void(0)"></a>
                                    <a rel="nofollow" class="shareQweibo" target="_top"
                                       href="javascript:void(0)"></a>
                                    <a rel="nofollow" class="shareRenren" target="_top"
                                       href="javascript:void(0)"></a>
                                    <a rel="nofollow" class="shareDouban" target="_top"
                                       href="javascript:void(0)"></a>
                                    <img src="/SVN/DR/Public/Images/home/ew.jpg">
                                </div>
                                &lt;!&ndash;分享按钮end&ndash;&gt;
                            </div>
                            <a rel="nofollow" target="_top" class="dr_help-left" href="javascript:void(0)">真爱查询</a>
                            <a rel="nofollow" target="_top" class="dr_help-left" href="javascript:void(0)">实体店免费预约</a>
                            <a rel="nofollow" class="dr_help-left" href="javascript:void(0)">在线客服</a>
                        </div>
                    </div>
                    <div class="dr_help-all fl">
                        <p>24小时全国免费服务热线</p>
                        <img src="/SVN/DR/Public/Images/home/tel.png">
                    </div>
                </div>
                &lt;!&ndash;帮助end&ndash;&gt;
            </div>-->
            <!--灰色区域end-->
            <!--黑色区域-->
            <div class="dr_black">
                <div class="w1000">
                    <!--服务-->
                    <!--<ul class="dr_servie">
                        <li>
                            <h4>关于我们</h4>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">权威认证</a>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">合作专区</a>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">加入我们</a>
                        </li>
                        <li>
                            <h4>购物指南</h4>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">购买流程</a>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">支付方式</a>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">配送流程</a>
                        </li>
                        <li>
                            <h4>售后服务</h4>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">退货流程</a>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">办理售后</a>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">15天退换</a>
                        </li>
                        <li>
                            <h4>帮助中心</h4>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">注册流程</a>
                            <a rel="nofollow" target="_top"
                               href="javascript:void(0)">投诉建议</a>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">网站地图</a>
                        </li>
                        <li>
                            <h4>服务条款</h4>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">终生保养</a>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">注册协议</a>
                            <a rel="nofollow" target="_top" href="javascript:void(0)">隐私声明</a>
                        </li>
                        <li>
                            <h4>DR资讯</h4>
                            <a target="_top" href="javascript:void(0)">钻石百科</a>
                            <a target="_top" href="javascript:void(0)">产品百科</a>
                            <a target="_top" href="javascript:void(0)">求婚指南</a>
                        </li>
                    </ul>-->
                    <!--服务end-->
                    <!--声明-->
                    <div class="dr_statement">
                        <p>Copyright ? 2006-2015 www.darryring.com 戴瑞珠宝 All Rights Reserved. 粤ICP备11012085号-2</p>
                        <p>ICP经营许可证粤B2-20140279 | 中国互联网违法信息举报中心 | 中国公安网络110报警服务 | 本网站提供所售商品的正式发票 </p>
                    </div>
                    <!--声明end-->

                </div>
            </div>
            <!--黑色区域end-->
        </div>
        <!--底部end-->
  


</body>
</html>

</body>
</html>